package com.fortune.dto.in.pUserMgt;

import com.fortune.constants.enums.Status;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

public class PUserLogableDto {
	@NotBlank(message="用户id不能为空")
	@ApiModelProperty(required=true, example="员工id")
	private String userId;
	@NotNull(message="logable 参数请传入FORBID或者ALLOW")
	@ApiModelProperty(required=true, example="NO 禁止登录;YES 允许登录",allowableValues= "YES,NO",dataType="string")
//	@JsonDeserialize(using=LogableEnumDeserializer.class)
	private Status logable;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Status getLogable() {
		return logable;
	}
	public void setLogable(Status logable) {
		this.logable = logable;
	}
	@Override
	public String toString() {
		return "MUserLogableDto [userId=" + userId + ", logable=" + logable + "]";
	}
}
